<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateAgricGoodsOperateLog extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('agric_goods_operate_logs', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->bigInteger('goods_id') ->nullable(false) ->comment('商品id');
            $table->tinyInteger('operate_type') ->nullable(false) ->comment('操作类型：(感兴趣1,查看卖家微信2,查看手机号3，点击数4)');
            $table->integer('user_id') ->nullable() ->comment('用户id');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('agric_goods_operate_log', function (Blueprint $table) {
            //
        });
    }
}
